package pay

import (
	"chatgpt/helper/code"
	"chatgpt/model/app"
)

// ---------------

// 第三方支付 统一处理
type OrderConfirmer interface {
	CheckSDK(data any) code.CODENO
	Confirm(data any) code.CODENO
}
type ThirdPay struct {
	Type   string //支付方式
	Reuslt *app.PayResult
}

func newThidPay(result *app.PayResult) OrderConfirmer {
	switch result.PayType {
	default:
		return &ThirdPay{Reuslt: result}
	}
}

func (self *ThirdPay) Confirm(data any) code.CODENO {
	return code.SUCCESS
}

func (self *ThirdPay) CheckSDK(data any) code.CODENO {
	return code.SUCCESS
}
